/**
 * 编辑-业务类型表js
 */
var vm = new Vue({
	el:'#dpLTE',
	data: {
		businessType: {
			businessId: 0
		}
	},
	methods : {
		setForm: function() {
			$.ajax({
				url: '../../rest/business/type/info?id='+ vm.businessType.businessId,
				type: 'get',
				success: function(data) {
					vm.businessType = data.rows;
				}
			});
		},
		acceptClick: function() {
			if (!$('#form').Validform()) {
		        return false;
		    }
		    $.ConfirmForm({
		    	url: '../../rest/business/type/update?_' + $.now(),
		    	param: vm.businessType,
		    	success: function(data) {
		    		$.currentIframe().vm.load();
		    	}
		    });
		}
	}
})